package com.koko.context;

/**
 * 利用线程的threadLocal收集管理员权限
 */
public class AdminContext extends BaseContext{

    public static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setCurrentStatus(Integer Status) {
        threadLocal.set(Status);
    }
    public static Integer getCurrentStatus() {
        return threadLocal.get();
    }

    public static void removeCurrentStatus() {
        threadLocal.remove();
    }
}
